<?php

define('PAGE_ID','clients');

require_once 'init.php';

$smarty->assign(
	'clients',
	query2arrays("
		SELECT 
			IFNULL(clients.code, clients.id) AS id,
			clients.name, 
			clients.logo
		FROM clients
		ORDER BY clients.sort_order
	")
);

display('clients');
?>